import { http } from "@/utils/http.js";

// 我的收入
export const myIncomeApi = (data) => {
  return http.request({
    method: "get",
    url: "/settle/myIncome",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的业绩
export const myGradeApi = (data) => {
  return http.request({
    method: "get",
    url: "/settle/myGrade",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的业绩详情
export const gradeDetailApi = (data) => {
  return http.request({
    method: "get",
    url: "/settle/gradeDetail",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
